package cn.tedu.rabbitmq.m1;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Producer {
    @Autowired
    private AmqpTemplate amqpTemplate;

    //
    public void send(){
        amqpTemplate.convertAndSend("helloworld","CGB小姐姐--新年阔落~~~来自南宁小哥哥");

    }
}
